package com.hhh.springai_test.service;

import com.hhh.springai_test.model.dto.readingRoomReservation.AddReadingRoomReservationRequest;
import com.hhh.springai_test.model.dto.readingRoomReservation.UpdateReadingRoomReservationRequest;
import com.hhh.springai_test.model.po.ReadingRoomReservation;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hhh.springai_test.model.vo.ReadingRoomReservationVO;

import java.util.List;

/**
* @author 29915
* @description 针对表【reading_room_reservation(阅览室预约记录表)】的数据库操作Service
* @createDate 2025-02-04 12:19:18
*/
public interface ReadingRoomReservationService extends IService<ReadingRoomReservation> {
    /**
     * 添加预约
     * @param addRequest
     * @return
     */
    Long addReadingRoomReservation(AddReadingRoomReservationRequest addRequest,Long userId);

    /**
     * 删除预约
     * @param id
     * @return
     */
    boolean deleteReadingRoomReservation(Long id,Long userId);

    /**
     * 获取预约列表
     * @return
     */
    List<ReadingRoomReservation> listReadingRoomReservation();

    /**
     * 获取用户的预约列表
     * @param userId 用户ID
     * @return 预约信息列表
     */
    List<ReadingRoomReservationVO> getUserReservations(Long userId);
}
